<?php if (!defined('THINK_PATH')) exit();?>
<!--信息列表-->
<?php if(is_array($data_info["list"])): $i = 0; $__LIST__ = $data_info["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div style='border-bottom:1px solid #ccc;height:50px;display:flex;margin:3px 0' class='IndexMainList_Info' info_id=<?php echo ($vo["info_id"]); ?> >
		<div style='text-align:center;width:25px;border:0px solid #ccc;height:100%;color:#000'>
			<?php switch($vo["info_type"]): case "1": ?>出售<?php break;?>
				<?php case "2": ?>出租<?php break;?>
				<?php case "3": ?>求购<?php break;?>
				<?php case "4": ?>求租<?php break;?>
				<?php default: ?>出售<?php endswitch;?>
		</div>
		<div style='flex:1;font-size:14px;line-height:25px;padding-left:5px;font-size:10px'>
			<div style='height:25px;border:0px solid;font;normal normal 12/25 normal;overflow:hidden;padding-right:10px'>
				<?php echo ($vo["info_title"]); ?>
			</div>
			<div style='display:flex'>
				<div style='flex:1;text-align:right;padding-right:10px'><?php echo ($vo["info_hclass"]); ?></div>
				<div style='flex:1;text-align:right;padding-right:10px'><?php echo ($vo["info_harea"]); ?>㎡ </div>
				<div style='flex:1;text-align:right;padding-right:10px'><?php echo ($vo["info_hprice"]); ?></div>
				<div style='flex:1;padding-left:10px'><?php echo (date('Y-m-d',$vo["info_ctime"])); ?></div>
			</div>
		</div>
	</div><?php endforeach; endif; else: echo "" ;endif; ?>
<!--信息分页-->
<div style='padding:30px 0 60px 0;text-align:center;border:0px solid' id='IndexMainList_Fpage' ><?php echo ($data_info["fpage"]); ?></div>

<script>
	$('.IndexMainList_Info').click(function(){
		var index_infoList_infoid = $(this).attr('info_id');
		var getSess_IndexinfoList = 'sessionStorage.IndexInfoList'+index_infoList_infoid;
		if(eval(getSess_IndexinfoList)){
			//$('#content').html(unescape(eval(getSess_IndexinfoList)));
		}else{
		}
			$.ajax({
				url:'/index.php/Fang/Before/index_infolist_details',
				data:{
					info_id:index_infoList_infoid,
				},
				success:function(res){
					var SetSess_IndexinfoList = 'sessionStorage.IndexInfoList'+index_infoList_infoid+'="'+escape(res)+'"';
					eval(SetSess_IndexinfoList);	
					$('#content').html(res);
				}
			});
	});


	//点击分页事件
	$('#IndexMainList_Fpage a').click(function(){
		var pnow = $(this).attr('pnow');
		sessionStorage.condition_pnow = pnow;
		index_init();
	});
	


	//将信息列表数据缓存
	var info_list = JSON.stringify(<?php echo ($info_list); ?>);
	sessionStorage.info_list = info_list;
	//alert(sessionStorage.info_list);

</script>